import django_filters
from django.contrib.auth import get_user_model

# from .models import UserProfile

User = get_user_model()


# 团队详细
class TeamFilter(django_filters.FilterSet):
    level = django_filters.CharFilter(field_name="level__level", help_text="等级", label="等级")
    user_code = django_filters.CharFilter(field_name="id", help_text="用户id", label="用户id")

    class Meta:
        model = User
        fields = ["level", "user_code"]
